package ooday02.homework;
//Person类：name、age、address、Person(参)、eat()、sleep()，sayHi()
public class Person {
    String name;
    int age;
    String address;
    Person(){}
    Person(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;//住址

    }

    void eat() {
        System.out.println(name + "回头请你吃饭");
    }

    void sleep() {
        System.out.println(name + "你要睡觉吗");
    }

    void sayHi() {
        System.out.println("大家好,我叫" + name + "今年" + age + "岁了,家住在" + address);
    }
}

